  var laydate = layui.laydate;
  //日期时间选择器
  laydate.render({
    elem: '#time'  //指定元素
    ,type: 'date'
    ,format:'yyyy-MM-dd'
	
  });
  
  layui.use('form', function(){
    var form = layui.form;
    //监听提交
    form.on('submit(formDemo)', function(data){
      layer.msg(JSON.stringify(data.field));
      return false;
    });
  });